import os

infopen = open(r'C:\Users\Administrator\Desktop\2.txt', 'r', encoding="utf-8")
outfopen = open(r'C:\Users\Administrator\Desktop\3.txt', 'w', encoding="utf-8")
file = infopen.read().replace('"', '')
outfopen.writelines(file)
infopen.close()
outfopen.close()
outfopen1 = open(r'C:\Users\Administrator\Desktop\3.txt', 'r', encoding="utf-8")
outfopen2 = open(r'C:\Users\Administrator\Desktop\4.txt', 'w', encoding="utf-8")
lines = outfopen1.readlines()
for line in lines:
    if line.split():
        outfopen2.writelines(line)
    else:
        outfopen2.writelines("")

outfopen1.close()
outfopen2.close()
